package com.kingyun.gpsinspection.purificationservice.dao.mapper.iam.qhse;


import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.qhse.ContingencyPlan;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.qhse.HazardSource;

import java.util.List;

public interface HazardSourceMapper {
    /**
     * 删除重大危险源
     * @param hazardSourceId
     * @return
     */
    int deleteByPrimaryKey(String[] hazardSourceId);
    /**
     * 新增重大危险源
     * @param record
     * @return
     */
    int insertSelective(HazardSource record);

    /**
     * 根据id查询重大危险源
     * @param hazardSourceId
     * @return
     */
    HazardSource selectByPrimaryKey(String hazardSourceId);
    /**
     * 根据id更新重大危险源
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(HazardSource record);

    /**
     * 总条数
     * @param bootstrapSearchBean
     * @return
     */
    Integer queryCount(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 重大危险源列表
     * @param bootstrapSearchBean
     * @return
     */
    List<ContingencyPlan> queryList(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 判断重大危险源名是否存在
     * @param hazardName 危险源名
     * @return
     */
    int isExitByName(String hazardName);
}